<!doctype html>
<html>

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>教师界面</title>
<meta name="description" content="这是教师主页">
<meta name="keywords" content="index">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="icon" type="image/png" href="../img/lysf.ico">
<link rel="stylesheet" href="../amazeui/css/amazeui.min.css" />
<link rel="stylesheet" href="css/admin.css">
<link rel="stylesheet" href="css/app.css">
</head>

<body style="margin-left: 10px; overflow:hidden;" >

	<div id="ref_page" class="am-g">
		<div class="tpl-content-page-title" style="margin-bottom: 10px;">学生列表</div>
	</div>
	<div class="am-panel am-panel-default">
		<div class="am-panel-bd am-scrollable-horizontal">
			<div class="am-u-sm-12">
				<table
					class="am-table am-table-centered am-table-striped am-table-hover table-main">
					<thead>
						<tr>
							<th>编号</th>
							<th>课题名</th>
							<th>选题学生</th>
							<th>班级</th>
							<th>电话号码</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody id="slist"></tbody>
				</table>
			</div>
		</div>
	</div>

<script src="../js/jquery.min.js"></script>
<script src="../amazeui/js/amazeui.min.js"></script>
<script type="text/javascript">
		$(function() {
		
		$.get('/graduation/teacherController/getStudentByTeacherId',function(data){
			$(data).each(function(index,value){
				var td1=$('<td>').text(index+1);
				var td2=$('<td>').text(value.project.projectName);
				var td3=$('<td>').text(value.user.userName);
				var td4=$('<td>').text(value.classInfo.className);
				var td5=$('<td>').text(value.user.userTel);
				var td6=$('<td>');
					var a1=$('<a>').addClass('am-btn am-btn-default am-btn-primary a1')
					.attr({'role':'button','href':'/graduation/ktbgController/gotoTktbg?studentId='+value.studentId}).text('开题报告');
					var a2=$('<a>').addClass('am-btn am-btn-default am-btn-primary a2')
					.attr({'role':'button','href':'/graduation/zqjcController/gotoTzqjc?studentId='+value.studentId}).text('中期检查');
					var a3=$('<a>').addClass('am-btn am-btn-default am-btn-primary a3')
					.attr({'role':'button','href':'/graduation/lunwenController/gotoTstudentlunwen?studentId='+value.studentId}).text('论文');
					var div2_div=$('<div>').addClass('am-btn-group').append(a1).append(a2).append(a3);
				td6.append(div2_div);
				var tr=$('<tr>').append(td1).append(td2).append(td3).append(td4).append(td5).append(td6);
				$('#slist').append(tr);
			});
		});
		

		});
</script>
</body>

</html>